<style>
.setimg{
	margin:-2px 5px 0 0 
}
#addform .file{
	position: relative;
}
#addform .file span{
	position: absolute;
	right: 80px;
	top: 15px;
	background-color: #414959;
	padding: 2px 6px;
	height: 23px;
	line-height: 23px;
	cursor: pointer;
	color: #fff;
	font-size: 14px;
	overflow: hidden;
	background-image: linear-gradient(to bottom, #6c7994, #414959);
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	border: 1px solid #363d4a;
	display: inline-block;
	*display: inline;
	*zoom: 1;
}
#addform .file span input{
	position: absolute;
	font-size: 100px;
	left: 0;
	top: 0;
	opacity: 0;
	filter: alpha(opacity=0);
	cursor: pointer;
}
</style>
<div class="row-fluid">
	<a style="border:1px solid #ccc" class="block-heading" data-toggle="collapse">列表数据</a>
    <div class="well">
		 <a class="btn btn-primary" href="/consume/exportUsedCard?order_id=<?=I('get.order_id')?>&card_name=<?=I('get.card_name')?>&user_mobile=<?=I('get.user_mobile')?>&user_name=<?=I('get.user_name')?>&stime=<?=I('get.stime')?>&etime=<?=I('get.etime')?>" data-width="750" data-height="380" data-title="导出表格" data-params="" style="float:right;padding:3px 6px">导出表格</a>
	    <div class="btn-toolbar">
		    <form>
				<input class="input input-medium" type="text" name="order_id" value="<?=I('get.order_id')?>" style="width: 180px;text-align: center" placeholder="订单号"/>
				<input class="input input-medium" type="text" name="user_mobile" value="<?=I('get.user_mobile')?>" style="width: 100px;text-align: center;margin-left: 10px;" placeholder="用户账号"/>
				<input class="input input-medium" type="text" name="user_name" value="<?=I('get.user_name')?>" style="width: 100px;text-align: center;margin-left: 10px;" placeholder="用户姓名"/>
				<input class="input input-medium" type="text" name="card_name" value="<?=I('get.card_name')?>" style="width: 180px;text-align: center;margin-left: 10px;" placeholder="套餐内容"/>
				<label style="display: inline;margin-left: 15px">消费时间：</label><input readonly name="stime" class="input input-medium" onclick='WdatePicker({dateFmt:"yyyy-MM-dd"})' type="text" placeholder="开始时间" value="<?=I('get.stime')?>" style="width: 100px;"/>&nbsp;
				<input readonly style="margin-left:10px;width: 100px;" name="etime" placeholder="结束时间" class="input input-medium" onclick='WdatePicker({dateFmt:"yyyy-MM-dd"})' type="text" value="<?=I('get.etime')?>" />
				<!--<select name="score_type" style="margin-left: 10px;width: 130px;">-->
					<!--<option value="0">套餐类型/所有</option>-->
					<!--<option value="1" <?=I('get.score_type')==1?'selected':''?>>普通</option>-->
					<!--<option value="2" <?=I('get.score_type')==2?'selected':''?>>白金</option>-->
					<!--<option value="3" <?=I('get.score_type')==3?'selected':''?>>钻石</option>-->
					<!--<option value="4" <?=I('get.score_type')==4?'selected':''?>>体验</option>-->
				<!--</select>-->
		    	<input type="hidden" value="<?=I('get.res')?>" name="res" />
		    	<button class="btn btn-info" style="margin:-9px 0 0 15px"><i class="icon-search"></i> 搜索</button>
		    </form>

		</div>
		<hr>
		<?php
			$type = ['','普通积分','白金积分','钻石积分','体验积分','黄金积分','口腔积分'];
		?>
		<table class="table">
		      <thead>
		        <tr>
		            <th style="text-align:center;">订单号</th>
		            <th style="text-align:center;">用户账号</th>
		            <th style="text-align:center;">用户姓名</th>
					<th style="text-align:center;">套餐名称</th>
		            <th style="text-align:center;">类型</th>
					<th style="text-align:center;">消费积分</th>
					<th style="text-align:center;">消费人</th>
					<th style="text-align:center;">消费人手机号</th>
					<th style="text-align:center;">套餐内容</th>
					<th style="text-align:center;">操作护士</th>
					<th style="text-align:center;">操作医生</th>
					<th style="text-align:center;">操作地点</th>
					<th style="text-align:center;">消费时间</th>
					<th style="text-align:center;">操作</th>
		        </tr>
		      </thead>
		      <tbody>
		      	<?php if($getData){foreach($getData AS $key=>$val){ ?>
		        <tr> 
		            <td style="text-align:center;vertical-align:middle;"><?=$val['order_id']?></td>
		            <td style="text-align:center;vertical-align:middle;"><?=$val['user_mobile']?></td>
		            <td style="text-align:center;vertical-align:middle;"><?=$val['user_name']?></td>
		            <td style="text-align:center;vertical-align:middle;"><?=$val['project_name']?></td>
					<td style="text-align:center;vertical-align:middle;"><?=$type[$val['score_type']]?></td>
					<td style="text-align:center;vertical-align:middle;"><?=$val['project_price']?></td>
					<td style="text-align:center;vertical-align:middle;"><?=$val['consumer']?></td>
					<td style="text-align:center;vertical-align:middle;"><?=$val['consumer_mobile']?></td>
					<td style="text-align:center;vertical-align:middle;"><?=$val['goods_name']?></td>
					<td style="text-align:center;vertical-align:middle;"><?=$val['operate_nurse']?></td>
					<td style="text-align:center;vertical-align:middle;"><?=$val['operate_doctor']?></td>
					<td style="text-align:center;vertical-align:middle;"><?=$val['operate_place']?></td>
					<td style="text-align:center;vertical-align:middle;"><?=date('Y-m-d',$val['use_at'])?></td>
					<td style="text-align:center;vertical-align:middle;"><a class="ifrm btn btn-info" href="javascript:void(0)" data-url="/consume/editProConsume" style="padding: 0px 4px;" data-width="600" data-height="360" data-title="编辑" data-params="card_id/<?=$val['card_id']?>">编辑</a></td>

				</tr>
		        <?php }}else{?>
		        	<tr><td style="text-align:center" colspan=11>暂无数据</td></tr>
		        <?php }?>
		      </tbody>
		   </table>
		   <span style="float:right;margin-top:-44px"><?=$page?></span>
	</div>
</div>
<script>
$(function(){
	$('.decate').click(function(){
		if(!window.confirm('确认'+$(this).attr('title')+'吗 ?')){
			return false;
		}
		window.location = $(this).attr('href');
	});

	$('input[name="order_id"]').on('keyup',function(){
		$(this).val($(this).val().replace(/[^\d]/g,''));
	});
})
</script>